import React from "react";
import styles from './index.module.scss';
import classnames from 'classnames';
import {IconFont} from '@/components';
import {EnumHelper} from "@/pages/dv/constants/EnumHeaderToolbar";

/**
 * 开发帮助文档
 * @param actions
 * @constructor
 */
export default function HelperLink({...actions}) {
  return <ul className={classnames(styles.toolbarUl,styles.helperLink)}>
    {
      Object.entries(EnumHelper).map(([key, value])=> <li
        key={key}
        // title={value.label}
        onClick={actions[value.onClick]}
      >
        <IconFont type={value.icon} />
        <span>{value.label}</span>
      </li>)
    }
  </ul>
}
